<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bluetooth LE Mesh Library: Mesh Sensor Server</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bluetooth LE Mesh Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__wiced__bt__mesh__sensor__server.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Mesh Sensor Server<div class="ingroups"><a class="el" href="group__wiced__bt__mesh.html">LE Mesh</a> &raquo; <a class="el" href="group__wiced__bt__mesh__models.html">Mesh Models Library API</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>The AIROC Mesh Sensor Server module provides a way for an application to implement a functionality for the devices that can be controlled using sensor. </p>
<p>To include the Mesh Models support for the Sensor Server module the application shall contain the WICED_BT_MESH_MODEL_SENSOR_SERVER</p>
<p>TBD </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga818a89eac9185a22a6d115c9103efc6c"><td class="memItemLeft" align="right" valign="top"><a id="ga818a89eac9185a22a6d115c9103efc6c"></a>
typedef void()&#160;</td><td class="memItemRight" valign="bottom"><b>wiced_bt_mesh_sensor_server_config_callback_t</b>(uint8_t element_idx, uint16_t event, void *p_data)</td></tr>
<tr class="separator:ga818a89eac9185a22a6d115c9103efc6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e492b218ea08c997f9b5f06f4f1eb3d"><td class="memItemLeft" align="right" valign="top"><a id="ga7e492b218ea08c997f9b5f06f4f1eb3d"></a>
typedef void()&#160;</td><td class="memItemRight" valign="bottom"><b>wiced_bt_mesh_sensor_server_report_callback_t</b>(uint16_t event, uint8_t element_idx, void *p_get_params, void *p_ref_data)</td></tr>
<tr class="separator:ga7e492b218ea08c997f9b5f06f4f1eb3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gadc856e45a2e98c17342907e40393ea91"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#gadc856e45a2e98c17342907e40393ea91">wiced_bt_mesh_model_sensor_server_init</a> (uint8_t element_idx, wiced_bt_mesh_sensor_server_report_callback_t *p_report_callback, wiced_bt_mesh_sensor_server_config_callback_t *p_config_change_callback, wiced_bool_t is_provisioned)</td></tr>
<tr class="memdesc:gadc856e45a2e98c17342907e40393ea91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Senosr Module initialization.  <a href="#gadc856e45a2e98c17342907e40393ea91">More...</a><br /></td></tr>
<tr class="separator:gadc856e45a2e98c17342907e40393ea91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga278b01024426e46048140d22fbc478fa"><td class="memItemLeft" align="right" valign="top">wiced_bool_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#ga278b01024426e46048140d22fbc478fa">wiced_bt_mesh_model_sensor_server_message_handler</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, uint8_t *p_data, uint16_t data_len)</td></tr>
<tr class="memdesc:ga278b01024426e46048140d22fbc478fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Server Message Handler.  <a href="#ga278b01024426e46048140d22fbc478fa">More...</a><br /></td></tr>
<tr class="separator:ga278b01024426e46048140d22fbc478fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa878df1a615babe42c88075d626f53d6"><td class="memItemLeft" align="right" valign="top">wiced_bool_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#gaa878df1a615babe42c88075d626f53d6">wiced_bt_mesh_model_sensor_setup_server_message_handler</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, uint8_t *p_data, uint16_t data_len)</td></tr>
<tr class="memdesc:gaa878df1a615babe42c88075d626f53d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Setup Server Message Handler.  <a href="#gaa878df1a615babe42c88075d626f53d6">More...</a><br /></td></tr>
<tr class="separator:gaa878df1a615babe42c88075d626f53d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88ff291568574d6d5be2af1dd5da0994"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#ga88ff291568574d6d5be2af1dd5da0994">wiced_bt_mesh_model_sensor_server_series_status_send</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, <a class="el" href="structwiced__bt__mesh__sensor__series__status__data__t.html">wiced_bt_mesh_sensor_series_status_data_t</a> *series_status_data)</td></tr>
<tr class="memdesc:ga88ff291568574d6d5be2af1dd5da0994"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Series Status send status.  <a href="#ga88ff291568574d6d5be2af1dd5da0994">More...</a><br /></td></tr>
<tr class="separator:ga88ff291568574d6d5be2af1dd5da0994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae23dc22a4ea8e68cdaa5ca643c52169b"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#gae23dc22a4ea8e68cdaa5ca643c52169b">wiced_bt_mesh_model_sensor_server_column_status_send</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, <a class="el" href="structwiced__bt__mesh__sensor__column__status__data__t.html">wiced_bt_mesh_sensor_column_status_data_t</a> *column_status_data)</td></tr>
<tr class="memdesc:gae23dc22a4ea8e68cdaa5ca643c52169b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Column Status send status.  <a href="#gae23dc22a4ea8e68cdaa5ca643c52169b">More...</a><br /></td></tr>
<tr class="separator:gae23dc22a4ea8e68cdaa5ca643c52169b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb08fbefebd1974a849dc9e928ce2bc2"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#gafb08fbefebd1974a849dc9e928ce2bc2">wiced_bt_mesh_model_format_sensor_server_data</a> (uint8_t element_idx, uint16_t property_id, uint8_t *p_buffer, uint16_t buffer_len)</td></tr>
<tr class="memdesc:gafb08fbefebd1974a849dc9e928ce2bc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Format Sensor Data.  <a href="#gafb08fbefebd1974a849dc9e928ce2bc2">More...</a><br /></td></tr>
<tr class="separator:gafb08fbefebd1974a849dc9e928ce2bc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1ddaea44b65372c7cabadf2a7637a502"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#ga1ddaea44b65372c7cabadf2a7637a502">wiced_bt_mesh_model_sensor_server_data</a> (uint8_t element_idx, uint16_t property_id, void *p_ref_data)</td></tr>
<tr class="memdesc:ga1ddaea44b65372c7cabadf2a7637a502"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Status send.  <a href="#ga1ddaea44b65372c7cabadf2a7637a502">More...</a><br /></td></tr>
<tr class="separator:ga1ddaea44b65372c7cabadf2a7637a502"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ea857d449567618ce7f299fc57ad227"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__sensor__server.html#ga5ea857d449567618ce7f299fc57ad227">wiced_bt_mesh_model_sensor_server_setting_status_send</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, uint16_t property_id, uint16_t setting_property_id)</td></tr>
<tr class="memdesc:ga5ea857d449567618ce7f299fc57ad227"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sensor Setting status.  <a href="#ga5ea857d449567618ce7f299fc57ad227">More...</a><br /></td></tr>
<tr class="separator:ga5ea857d449567618ce7f299fc57ad227"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gadc856e45a2e98c17342907e40393ea91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc856e45a2e98c17342907e40393ea91">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_server_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_sensor_server_init </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wiced_bt_mesh_sensor_server_report_callback_t *&#160;</td>
          <td class="paramname"><em>p_report_callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wiced_bt_mesh_sensor_server_config_callback_t *&#160;</td>
          <td class="paramname"><em>p_config_change_callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wiced_bool_t&#160;</td>
          <td class="paramname"><em>is_provisioned</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Senosr Module initialization. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Device element to where model is used </td></tr>
    <tr><td class="paramname">p_report_callback</td><td>The application callback that will be executed on receiving a sensor get messages. </td></tr>
    <tr><td class="paramname">p_config_change_callback</td><td>The application callback that will be executed to notify cadenence and setting changes. </td></tr>
    <tr><td class="paramname">is_provisioned</td><td>If TRUE, the application is being restarted after being provisioned or after a power loss. If FALSE the model cleans up NVRAM on startup.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="ga278b01024426e46048140d22fbc478fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga278b01024426e46048140d22fbc478fa">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_server_message_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_bool_t wiced_bt_mesh_model_sensor_server_message_handler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Server Message Handler. </p>
<p>An application or a parent model can call this models library function to process a message received from the Sensor Client device. The function parses the message and if appropriate calls the parent back to perform functionality.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with information about received message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data portion of the message </td></tr>
    <tr><td class="paramname">data_len</td><td>Length of the data in the message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise. </dd></dl>

</div>
</div>
<a id="gaa878df1a615babe42c88075d626f53d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa878df1a615babe42c88075d626f53d6">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_setup_server_message_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_bool_t wiced_bt_mesh_model_sensor_setup_server_message_handler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Setup Server Message Handler. </p>
<p>An application or a parent model can call this models library function to process a message received from the Sensor Client device. The function parses the message and if appropriate calls the parent back to perform functionality.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with information about received message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data portion of the message </td></tr>
    <tr><td class="paramname">data_len</td><td>Length of the data in the message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise. </dd></dl>

</div>
</div>
<a id="ga88ff291568574d6d5be2af1dd5da0994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga88ff291568574d6d5be2af1dd5da0994">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_server_series_status_send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_sensor_server_series_status_send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__sensor__series__status__data__t.html">wiced_bt_mesh_sensor_series_status_data_t</a> *&#160;</td>
          <td class="paramname"><em>series_status_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Series Status send status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">series_status_data</td><td>pointer to the series data</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="gae23dc22a4ea8e68cdaa5ca643c52169b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae23dc22a4ea8e68cdaa5ca643c52169b">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_server_column_status_send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_sensor_server_column_status_send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__sensor__column__status__data__t.html">wiced_bt_mesh_sensor_column_status_data_t</a> *&#160;</td>
          <td class="paramname"><em>column_status_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Column Status send status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">column_status_data</td><td>pointer to the column data</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="gafb08fbefebd1974a849dc9e928ce2bc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafb08fbefebd1974a849dc9e928ce2bc2">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_format_sensor_server_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t wiced_bt_mesh_model_format_sensor_server_data </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>property_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>buffer_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Format Sensor Data. </p>
<p>An Application can call this function to format sensor data to be sent out. Function returns length of the data filled in the buffer. Property_id 0 means that we need to send data for all sensors of the element.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element Index where the sensor is located </td></tr>
    <tr><td class="paramname">property_id</td><td>Property ID of the sensor for which sensor data shall be used. If Property ID is zero, the data will include all sensors of the element. </td></tr>
    <tr><td class="paramname">p_buffer</td><td>Buffer to be filled with information </td></tr>
    <tr><td class="paramname">buffer_len</td><td>size of the buffer</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>number of bytess filled in the buffer. </dd></dl>

</div>
</div>
<a id="ga1ddaea44b65372c7cabadf2a7637a502"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1ddaea44b65372c7cabadf2a7637a502">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_server_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_sensor_server_data </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>property_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p_ref_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Status send. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Element Index where the sensor is located </td></tr>
    <tr><td class="paramname">property_id</td><td>Property ID of the sensor for which sensor data shall be reported. If Property ID is zero, the Status will include all sensors of the element. </td></tr>
    <tr><td class="paramname">p_ref_data</td><td>If application is sending data based on the Get request from the library, the parameter should contain the values passed in the GET request. Should be zero otherwise.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="ga5ea857d449567618ce7f299fc57ad227"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5ea857d449567618ce7f299fc57ad227">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_sensor_server_setting_status_send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_sensor_server_setting_status_send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>property_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>setting_property_id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sensor Setting status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been received in the request, or created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">property_id</td><td>Property ID of the sensor for which Sensor Setting status shall be reported </td></tr>
    <tr><td class="paramname">setting_property_id</td><td>Property ID of the Sensor Setting, that the Sensor Setting status shall be reported</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Bluetooth LE Mesh Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
